package com.lbs.jiepiaisi.manager;

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

/**
 * 时间：2018/1/18 09:17
 * 作用：
 */

public class CommonScanActivityManager {

    private static List<Activity> activities = new ArrayList<>();

    public static void addActivity(Activity activity) {
        activities.add(activity);
    }

    public static void delAllActivity() {
        for (Activity activity : activities) {
            if (activity != null) {
                activity.finish();
            }
        }
        activities.clear();
    }
}
